﻿<ribbon:RibbonWindow x:Class="JasRibbonApplicatie.MainWindow"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
		Title="JAS Scan"
		x:Name="RibbonWindow"
		Width="1000" Height="700" WindowState="Maximized">
	<Grid x:Name="LayoutRoot">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>
		
		<ribbon:Ribbon x:Name="Ribbon" SelectionChanged="onTab_Click">
			<ribbon:Ribbon.ApplicationMenu>
                <ribbon:RibbonApplicationMenu SmallImageSource="Images\smallLogo.png" LargeImageSource="Images\smallLogo.png">
					<ribbon:RibbonApplicationMenuItem Header="Afmelden"
													  x:Name="Logoff"
													  ImageSource="Images\lock.png" Click="Logoff_Click" />
					<ribbon:RibbonApplicationMenuItem Header="Afsluiten"
													  x:Name="CloseButton"
													  ImageSource="Images\close.png" Click="CloseButton_Click" />
				</ribbon:RibbonApplicationMenu>
			</ribbon:Ribbon.ApplicationMenu>
            <ribbon:RibbonTab x:Name="scannenTab" 
							  Header="Scannen" IsEnabled="True">
                <ribbon:RibbonGroup x:Name="ScannenGroup" 
									Header="Scannen" IsEnabled="True">
                    <ribbon:RibbonButton x:Name="btnAfhalen"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\incomming.png"
                                         SmallImageSource="Images\AanvraagBeheerIcons\small\incomming.png"
										 Width="100"
										 Label="Afhalen" 
										 Click="onOntleningButton_Click" />
                    <ribbon:RibbonButton x:Name="btnInleveren"
										 Width="100"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\outgoing.png"
                                         SmallImageSource="Images\AanvraagBeheerIcons\small\outgoing.png"
										 Label="Inleveren" Click="onOntleningButton_Click" />
                    <ribbon:RibbonButton x:Name="btnHuidigeAanvragen"
										 Width="100"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\today.png"
                                         SmallImageSource="Images\AanvraagBeheerIcons\small\today.png"
										 Label="Aanvragen van vandaag" Click="btnScanActie_Click"
                                         IsEnabled="False" Visibility="Collapsed"/>
                </ribbon:RibbonGroup>
                <ribbon:RibbonGroup x:Name="OntleningsGroup"
									Header="Acties" IsEnabled="False" Visibility="Collapsed">
                    <!-- IsEnabled wordt beheerd in Ontleningen, maar defaultwaarde hier geset -->
                    <ribbon:RibbonButton x:Name="btnOntleningBeheer"
										 Width="100"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\scannen.png"
                                         SmallImageSource="Images\AanvraagBeheerIcons\small\scannen.png"
										 Label="Scannen starten" Click="btnScanActie_Click" />
                    <ribbon:RibbonButton x:Name="btnOngendaanMaken"
										 Width="100"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\undo.png"
                                         SmallImageSource="Images\AanvraagBeheerIcons\small\undo.png"
										 Label="Ongedaan maken" Click="btnScanActie_Click" />
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>
            <ribbon:RibbonTab x:Name="materiaalTab" 
							  Header="Materiaal">
                <ribbon:RibbonGroup x:Name="MateriaalGroup">
                    <ribbon:RibbonButton x:Name="btnshowInfo"
										 LargeImageSource="Images/info.png"
										 Label="overzicht materiaal"
										 Click="overzichtMateriaalStatus_Click"/>
                    <ribbon:RibbonButton x:Name="btnNieuwMateriaal"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\addMateriaal.png"
                                         SmallImageSource="Images\AanvraagBeheerIcons\small\addMateriaal.png"
										 Label="voeg materiaal toe" 
										 Click="overzichtMateriaalStatus_Click" />
                    <ribbon:RibbonButton x:Name="btnCombineMaterials"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\linkMateriaal.png"
                                         SmallImageSource="Images\AanvraagBeheerIcons\small\linkMateriaal.png"
										 Label="Link materiaal"
										 Click="overzichtMateriaalStatus_Click"/>
                    <ribbon:RibbonButton x:Name="btnAddToebehoren"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\toebehoren.png"
                                         SmallImageSource="Images\AanvraagBeheerIcons\small\toebehoren.png"
										 Label="voeg accessoires toe"
										 Click="overzichtMateriaalStatus_Click"/>
                </ribbon:RibbonGroup>
                <ribbon:RibbonGroup x:Name="BarcodeGroup">
                    <ribbon:RibbonButton x:Name="btnNewItem"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\addLabel.png"
                                         SmallImageSource="Images\AanvraagBeheerIcons\small\addLabel.png"
										 Label="Nieuw Item" 
										 Click="onButton_Click"/>
                    <ribbon:RibbonButton x:Name="btnRefreshItem"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\refreshLabel.png"
                                         SmallImageSource="Images\AanvraagBeheerIcons\small\refreshLabel.png"
										 Label="Barcode vernieuwen" 
										 Click="onButton_Click" />
                    <ribbon:RibbonButton x:Name="btnPrintLabels"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\printLabel.png"
                                         SmallImageSource="Images\AanvraagBeheerIcons\small\printLabel.png"
										 Label="Labels Printen" 
										 Click="onButton_Click" />
                </ribbon:RibbonGroup>

            </ribbon:RibbonTab>
            <ribbon:RibbonTab x:Name="aanvragenTab" Header="Aanvragen">
				<ribbon:RibbonGroup x:Name="AanvragenSelectieGroup" 
									Header="Aanvragen">
					<ribbon:RibbonButton x:Name="nieuweAanvragenButton"
										 Width="100"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\nieuw.png"
										 Label="Nieuwe" 
										 Click="aanvraagFilterStatus_Click" />
                    <ribbon:RibbonButton x:Name="eersteGoedkeuringAanvragenButton"
										 Width="100"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\eersteGoedkeuring.png"
										 Label="Eerste Goedkeuring" 
										 Click="aanvraagFilterStatus_Click" />
                    <ribbon:RibbonButton x:Name="defGoedkeuringAanvragenButton"
										 Width="100"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\defGoedkeuring.png"
										 Label="Definitieve Goedkeuring" 
										 Click="aanvraagFilterStatus_Click" />
                    <ribbon:RibbonButton x:Name="materiaalBuitenAanvragenButton"
										 Width="100"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\materiaalBuiten.png"
										 Label="Materiaal Buiten" 
										 Click="aanvraagFilterStatus_Click" />
                    <ribbon:RibbonButton x:Name="afgerondAanvragenButton"
										 Width="100"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\afgerond.png"
										 Label="Verstreken" 
										 Click="aanvraagFilterStatus_Click" />
					<ribbon:RibbonButton x:Name="afgekeurdeAanvragenButton"
										 Width="100"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\afgekeurd.png"
										 Label="Afgekeurde" 
										 Click="aanvraagFilterStatus_Click" />
				</ribbon:RibbonGroup>
                <ribbon:RibbonGroup x:Name="MailToolsGroup" Header="Mail" Visibility="Collapsed">
                    <ribbon:RibbonButton x:Name="nieuweMail"
										 Width="100"
										 LargeImageSource="Images\mail\big\Mail New.png"
                                         SmallImageSource="Images\mail\small\Mail New.png"
										 Label="E-mailbericht" 
										 Click="MailTools_Click" />
                    <ribbon:RibbonButton x:Name="beantwoordenButton"
										 Width="100"
										 LargeImageSource="Images\mail\big\Mail Reply.png"
                                         SmallImageSource="Images\mail\small\Mail Reply.png"
										 Label="Beantwoorden" 
										 Click="MailTools_Click" />
                    <ribbon:RibbonButton x:Name="allenbeantwoordenButton"
										 Width="100"
                                         LargeImageSource="Images\mail\big\Mail Reply All.png"
                                         SmallImageSource="Images\mail\small\Mail Reply All.png"
										 Label="Allen Beantwoorden" 
										 Click="MailTools_Click" />
                    <ribbon:RibbonButton x:Name="doorsturenButton"
										 Width="100"
                                         LargeImageSource="Images\mail\big\Mail Forward.png"
                                         SmallImageSource="Images\mail\small\Mail Forward.png"
										 Label="Doorsturen" 
										 Click="MailTools_Click" />
                    <ribbon:RibbonButton x:Name="verwijderenButton"
										 Width="100"
                                         LargeImageSource="Images\mail\big\delete.png"
                                         SmallImageSource="Images\mail\small\delete.png"
										 Label="Verwijderen"
										 Click="MailTools_Click" />
                    <ribbon:RibbonButton x:Name="sendnreceiveButton"
										 Width="100"
                                         LargeImageSource="Images\mail\big\Mail Refresh.png"
                                         SmallImageSource="Images\mail\small\Mail Refresh.png"
										 Label="Verzenden / Ontvangen"
										 Click="MailTools_Click" />
                </ribbon:RibbonGroup>
                <ribbon:RibbonGroup x:Name="AanvragenToolsGroup" 
									Header="Tools">
					<ribbon:RibbonButton x:Name="AanvraagKiezenButton"
										 Width="100"
										 LargeImageSource="Images\info.png"
										 Label="Overzicht" 
										 Click="AanvragenTools_Click" />
					<ribbon:RibbonButton x:Name="AanvraagMateriaalButton"
										 Width="100"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\materiaal.png"
										 Label="Materiaal"
										 Click="AanvragenTools_Click" />
					<ribbon:RibbonButton x:Name="AanvraagMailsButton"
										 Width="100"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\mails.png"
										 Label="Mails"
										 Click="AanvragenTools_Click" />
					<ribbon:RibbonButton x:Name="AanvraagFormulierenButton"
										 Width="100"
										 LargeImageSource="Images\AanvraagBeheerIcons\big\form.png"
										 Label="Formulieren" 
										 Click="AanvragenTools_Click" />
				</ribbon:RibbonGroup>
			</ribbon:RibbonTab>
			<ribbon:RibbonTab x:Name="gebruikersTab" 
							  Header="Gebruikers">
				<ribbon:RibbonGroup x:Name="BeheerGroup" 
									Header="Beheer">
					<ribbon:RibbonButton x:Name="gebruikersLijstButton"
										 LargeImageSource="Images\barcode.png"
										 Label="Lijst Gebruikers" 
										 Click="onButton_Click" />
				</ribbon:RibbonGroup>
			</ribbon:RibbonTab>
			<ribbon:RibbonTab x:Name="planningTab" 
							  Header="Planning">
					<ribbon:RibbonGroup x:Name="PlanningGroup"
									Header="Planning">
					<ribbon:RibbonButton x:Name="planningButton"
										 LargeImageSource="Images\planning2.png"
										 Label="Planning" 
										 Click="onButton_Click" />
				</ribbon:RibbonGroup> 
			</ribbon:RibbonTab>
		</ribbon:Ribbon>
		<Popup x:Name="loginPopup" PopupAnimation="Fade" Placement="Center" IsOpen="True" ></Popup>
        <Grid Grid.Row="1" Name="navigationStatusGrid" HorizontalAlignment="Center" Width="Auto">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Image Grid.Row="1" Source="Images/logo_128.png" Stretch="None" />
            <ProgressBar Grid.Row="2" Height="15" VerticalAlignment="Top" Name="navigationProgressBar" />
        </Grid>
		<Frame Grid.Row="1" Name="mainFrame"
               HorizontalAlignment="Stretch"
               VerticalAlignment="Top"
               Margin="0,0,0,0"
               Panel.ZIndex="0"
               NavigationUIVisibility="Hidden"
               NavigationProgress="mainFrame_NavigationProgress"
               Visibility="Collapsed" Navigating="mainFrame_Navigating" Navigated="mainFrame_Navigated" />
        <StatusBar Grid.Row="2" Height="23" HorizontalAlignment="Stretch" Name="mainStatusbar" VerticalAlignment="Top">
            <StatusBar.ItemsPanel>
                <ItemsPanelTemplate>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="4*"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                    </Grid>
                </ItemsPanelTemplate>
            </StatusBar.ItemsPanel>
            <StatusBarItem Grid.Column="0" Name="ErrorStatusBarItem" Visibility="Collapsed">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <Image     Grid.Column="0" Source="Images\AanvraagBeheerIcons\small\Error.png" />
                    <TextBlock Grid.Column="1" Text="Fout: " />
                    <Grid Grid.Column="2">
                        <TextBlock Name="ErrorTextBlock">
                        <TextBlock.RenderTransform>
                            <TranslateTransform x:Name="translate" />
                        </TextBlock.RenderTransform>
                        <TextBlock.Triggers>
                            <EventTrigger RoutedEvent="FrameworkElement.Loaded">
                                <BeginStoryboard>
                                    <Storyboard RepeatBehavior="Forever">
                                        <DoubleAnimation 
                                            From="300" To="-300" 
                                            Storyboard.TargetName="translate" 
                                            Storyboard.TargetProperty="X"
                                            Duration="0:0:5" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </EventTrigger>
                        </TextBlock.Triggers>
                        </TextBlock>
                    </Grid>         
                </Grid>
            </StatusBarItem>
            <StatusBarItem Grid.Column="2" Name="vooruitgangStatusBarItem" Visibility="Collapsed">
                <ProgressBar Name="vooruitgangProgressBar" Value="0" Width="200" Height="18"/>
            </StatusBarItem>
            <StatusBarItem Grid.Column="1" Name="actieStatusBarItem" Visibility="Collapsed"  Content="wijzigingen worden opgeslaan"/>
            <StatusBarItem Grid.Column="3" Name="extraStatusBarItem" Visibility="Collapsed" />
        </StatusBar>
    </Grid>
</ribbon:RibbonWindow>
